﻿<UserControl x:Class="ArboriumExplorer.DataEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="180" d:DesignWidth="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="45" />
            <RowDefinition Height="65" />
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>

        <Label Content="DataType" Height="32" HorizontalAlignment="Right" Margin="5,0,5,5" Name="DataTypeLabel" VerticalAlignment="Top" FontWeight="Bold" FontStretch="Normal" Foreground="Blue" FontSize="16" Width="150" HorizontalContentAlignment="Right" />
        <CheckBox Content="Enabled" Height="16" HorizontalAlignment="Left" Margin="5,10,5,5" Name="PresentCheckBox" VerticalAlignment="Top" Checked="PresentCheckBox_Checked" Unchecked="PresentCheckBox_Checked" />
        
        <RadioButton Content="From text" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="5,5,5,5" Name="FromTextRadioButton" VerticalAlignment="Top" Checked="FromTextRadioButton_Checked" Unchecked="FromTextRadioButton_Checked" />
        <RadioButton Content="From and to file" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="5,25,5,5" Name="FromFileRadioButton" VerticalAlignment="Top" />
        
        <Label Content="Type:" Grid.Row="2" Height="30" HorizontalAlignment="Left" Margin="5,5,5,5" Name="TypeLabel" VerticalAlignment="Top" />
        <ComboBox Grid.Row="2" Height="23" HorizontalAlignment="Stretch" Margin="50,5,5,5" Name="TypeCombo" VerticalAlignment="Top" SelectionChanged="TypeCombo_SelectionChanged" />
        <Label Content="Value:" Grid.Row="2" Height="30" HorizontalAlignment="Left" Margin="5,35,5,5" Name="ValueLabel" VerticalAlignment="Top" />
        <TextBox Grid.Row="2" Height="23" HorizontalAlignment="Stretch" Margin="50,35,5,5" Name="ValueTextBox" VerticalAlignment="Top" TextChanged="ValueTextBox_TextChanged" />
        
        <Button Content="Browse..." Grid.Row="3" Height="25" HorizontalAlignment="Right" Margin="5,5,165,5" Name="BrowseFileButton" VerticalAlignment="Top" Width="75" Click="BrowseFileButton_Click" />
        <Button Content="Export" Grid.Row="3" Height="25" HorizontalAlignment="Right" Margin="5,5,85,5" Name="ExportFileButton" VerticalAlignment="Top" Width="75" Click="ExportFileButton_Click" />
        <Button Content="Update" Grid.Row="3" Height="25" HorizontalAlignment="Right" Margin="5,5,5,5" Name="UpdateButton" VerticalAlignment="Top" Width="75" Click="UpdateButton_Click" />
        <TextBox Grid.Row="3" Height="25" HorizontalAlignment="Stretch" Margin="70,5,245,5" Name="FileName" VerticalAlignment="Top" />
        <Label Content="File name:" Grid.Row="3" Height="30" HorizontalAlignment="Left" Margin="5,5,5,5" Name="FileNameLabel" VerticalAlignment="Top" />
    </Grid>
</UserControl>
